-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up and refactor IngameWindow button handling #1608
Clean up and refactor IngameWindow button handling #1608
Conversation
321e33a
to
ec9c289
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, only change is basically to use an enum class throughout.
I added pointers how to make best use of that, if anything is unclear, feel free to ask.
3df993a
to
9358be6
Compare
Had to move the enum out of the class, as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to move the enum out of the class, as maxEnumValue(ButtonId) isn't usable in an incomplete class context.
Shame but unfortunately true :(
Last bit of polishing is mostly getting rid of the remnants of the button ID: Rename the enum and all variables of that type (from ìdto e.g.
buttonor
bt`)
9358be6
to
eb9af47
Compare
eb9af47
to
8362ac7
Compare
c4cbc99
to
8362ac7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
8362ac7
to
f6fb9c2
Compare
last_down
,last_down2
).I'll rebase #1606 and implement discussed changes before this is ready for consideration.